package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-29
 */
@TableName("student_grade_add_type")
@ApiModel(value = "StudentGradeAddType对象", description = "")
@Data
public class StudentGradeAddType implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long studentGradeId;

    @ApiModelProperty("1正常添加，2为新生分层自动添加")
    private Integer type;

    private Integer addType;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
